﻿<?php //Seyret Component v.0.3//
/**
* @package Seyret
* @version 0.3
* @copyright Copyright (C) 2008 Mustafa DINDAR. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Seyret Video Component is a free software.
* See seyrettos.html for license notices and details.
*/

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );


$user =& JFactory::getUser();
$userid=$user->id;

require_once( JPATH_SITE.DS.'components'.DS.'com_seyret'.DS.'includes'.DS.'classes'.DS.'usertools.class.php' );
$usertool = new usertools();

echo $this->toolbar;
echo $this->modtoolbar;

$channeldata = $this->channeldata;


$avatarsystem = $this->registry->getValue( 'seyret.user.avatarsystem');

?>


<div id="mlchannel" class="graydivbox">

	<div class="mlchannelimagediv">
		<img class="mlchannelimage" src="<?php echo $channeldata->channelimage; ?>" alt="" />
	</div>
	
	
	<div style="padding-left:10px;">
		<div ><?php echo $channeldata->channeltitle; ?>
		</div>
		
		<div ><?php echo $channeldata->channeldesc; ?>
		</div>
		
		
	</div>
	
	<div style="clear:both;"></div>

</div>

<div id="pendingmemberstitle">
	<?php echo JText::_('Pending Members');?>
</div>

<div class="graydivbox">
	<?php
		foreach ($this->pendingmembers as $pendmember) {
		?>
		<div class="whitedivbox" style="margin-bottom:5px;">
			<div style="float:left; width:40px;"> <?php echo $usertool->getUserAvatar($pendmember->userid, $pendmember->email, 40, $avatarsystem); ?></div>
			<div style="float:left;"><?php echo $pendmember->username; ?>	</div>
			<?php
			if ($userid == $pendmember->ownerid) {
			?>
			<div style="float:right; font-size:10px;"><a href="<?php echo $this->absURL("index.php?option=com_seyret&amp;view=channel&amp;task=optchmember&amp;appr=1&amp;chid=".$pendmember->channelid)."&amp;usid=".$pendmember->userid; ?>">Approve</a></div>
			
			<?php
			}
			?>
			<div style="clear:both;"></div>
		</div>
		<?php
		}
	?>
</div>



<div id="approvedmemberstitle">
	<?php echo JText::_('Approved Members');?>
</div>

<div class="graydivbox">
	<?php
		foreach ($this->approvedmembers as $appdmember) {
		?>
		<div class="whitedivbox" style="margin-bottom:5px;">
			<div style="float:left; width:40px;"> <?php echo $usertool->getUserAvatar($appdmember->userid, $appdmember->email, 40, $avatarsystem); ?></div>
			<div style="float:left;"><?php echo $appdmember->username."<br>"; ?>	</div>
			<div style="clear:both;"></div>
		</div>
		<?php
		}
	?>
</div>
